package _go

import (
	"context"
	"gitee.com/kmyss/gf-ex/yscmd"
	"gitee.com/kmyss/ys-cli/internal/cmd/go/build"
)

type Builder struct {
	yscmd.CommandBuilderCore
}

func (b *Builder) Init(ctx context.Context) {
	b.CommandBuilderCore.Init(ctx)
	b.C.Use = "go"
	b.C.Short = "go 项目常用辅助功能"
	b.C.Long = `
    为 go 项目的初始化,编译,开发提供脚手架支持
`
	
	b.addCommand()
	b.addFlag()
}

func (b *Builder) addCommand() {
	b.SetChildCommands(
		&build.Builder{},
		&yscmd.CmdHelpBuilder{})
}

func (b *Builder) addFlag() {
	b.SetFlags(&yscmd.FlagDebugBuilder{})
}
